From ae10d8e67da181dce7a6fac33f0c49fd87806b98 Mon Sep 17 00:00:00 2001 From: M A Young Date: Fri, 17 Aug 2012 14:10:26 +0100 Subject: [PATCH] xend: Replace the use of XMLPrettyPrint from PyXML with stdlib functionality. This appears to have been missed by changeset 22235:b8cc53d22545 "Replace pyxml/xmlproc-based XML validator with lxml based one" This was reported by Toshio Ernie Kuratomi at https://bugzilla.redhat.com/show_bug.cgi?id=842843 Signed-off-by: Michael Young Acked-by: Ian Campbell Committed-by: Ian Campbell --- tools/python/xen/xm/create.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 5b52e3a706..7bad910941 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -1543,8 +1543,7 @@ def main(argv): SXPPrettyPrint.prettyprint(config) if opts.vals.xmldryrun and serverType == SERVER_XEN_API: - from xml.dom.ext import PrettyPrint as XMLPrettyPrint - XMLPrettyPrint(doc) + print doc.toprettyxml() if opts.vals.dryrun or opts.vals.xmldryrun: return -- 2.30.2